package com.Lgwd.repository;

import com.Lgwd.entity.UserItemInfoEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface UserItemInfoRepository extends JpaRepository<UserItemInfoEntity,Integer> {



    /**
     * 查询单个物品功能
     */
    @Query(value = "SELECT * FROM `useriteminfo` WHERE item_id=?1",nativeQuery = true)
    UserItemInfoEntity findBackInfoEntityById(@Param("item_id")String item_id);
}
